$OpenBSD: patch-libpurple_protocols_oscar_Makefile_in,v 1.22 2014/10/28 01:14:23 brad Exp $
--- libpurple/protocols/oscar/Makefile.in.orig	Thu Oct 16 20:20:20 2014
+++ libpurple/protocols/oscar/Makefile.in	Thu Oct 23 04:31:11 2014
@@ -130,7 +130,7 @@ am__v_lt_1 = 
 libaim_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 	$(libaim_la_LDFLAGS) $(LDFLAGS) -o $@
-@STATIC_OSCAR_FALSE@am_libaim_la_rpath = -rpath $(pkgdir)
+@STATIC_OSCAR_FALSE@am_libaim_la_rpath = -rpath $(pkgdir) -Wl,-rpath,$(pkgdir)
 @STATIC_OSCAR_FALSE@libicq_la_DEPENDENCIES = liboscar.la
 am__libicq_la_SOURCES_DIST = libicq.c
 @STATIC_OSCAR_FALSE@am_libicq_la_OBJECTS = libicq.lo
@@ -138,7 +138,7 @@ libicq_la_OBJECTS = $(am_libicq_la_OBJECTS)
 libicq_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 	$(libicq_la_LDFLAGS) $(LDFLAGS) -o $@
-@STATIC_OSCAR_FALSE@am_libicq_la_rpath = -rpath $(pkgdir)
+@STATIC_OSCAR_FALSE@am_libicq_la_rpath = -rpath $(pkgdir) -Wl,-rpath,$(pkgdir)
 am__DEPENDENCIES_1 =
 @STATIC_OSCAR_FALSE@liboscar_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
 am__liboscar_la_SOURCES_DIST = authorization.c bstream.c clientlogin.c \
